#pragma warning(disable : 4996)
#include<iostream>
using namespace std;
class Date
{
public:
	void print(void);
	Date(int year = 2000, int month = 1, int day = 1);
	bool operator>(Date&p);
	bool operator==(Date& p);
	bool operator<(Date& p);
	bool operator>=(Date& p);
	bool operator<=(Date& p);
	Date& operator+=(int day);
	Date operator+(int day);
	Date& operator-=(int day);
	Date operator-(int day);
	int operator-(Date& p);
	Date& operator++();
	Date operator++(int);
	Date& operator--();
	Date  operator--(int);
	friend ostream& operator<<(ostream&out,Date&p);
	friend istream& operator>>(istream& in, Date& p);
    int GetMonthDay(int year, int month);
	bool JudgeDate(int year, int month, int day);
	void InIt();

private:
	int _year;
	int _month;
	int _day;
};